//
//  Recommend.m
//  GoodWayClient
//
//  Created by HuiDong on 15/12/22.
//  Copyright © 2015年 HuiDong. All rights reserved.
//

#import "Recommend.h"

@implementation Recommend

+ (instancetype)RecommendWithDic:(NSDictionary *)dic
{
    return [[self alloc] initWithDic:dic];
}
- (instancetype)initWithDic:(NSDictionary *)dic
{
    if (self = [super init]) {
        NSNumberFormatter* numberFormatter = [[NSNumberFormatter alloc] init];
        self.RecommendId = [[numberFormatter stringFromNumber:dic[@"Id"]] intValue];
        self.Name = dic[@"Name"];
        self.PhoneNum = dic[@"PhoneNum"];
        self.ReContent = dic[@"ReContent"];
        self.Status = [[numberFormatter stringFromNumber:dic[@"Status"]] intValue];
        self.CreateTime = (NSDate *)dic[@"CreateTime"];
    }
    return self;
}

@end
